<template>
  <div id="app">
    <img alt="Vue logo" src="../assets/logo.png">
    <img alt="Vue logo" src="../assets/loading.gif">
    <h3 class="title">itany</h3>
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <hr>
      <!-- 模块化环境中 vue-loader 插件时识别驼峰标签 -->
      <StaticComponent />
    <hr>
  </div>
</template>

<script>

import HelloWorld from '../components/HelloWorld.vue'
import StaticComponent from '../components/StaticComponent.vue'
// for (let i = 0; i < 10; i++) {
//   console.log("1",i);
// }

// ES6 的模块导出语法
export default {
  components: {
    HelloWorld,StaticComponent
  }
}
// 等效于 在无 babel 插件中如下代码
// module.exports = {
//   default:{
//     components: {
//       HelloWorld
//     }
//   }
// }

</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
